<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/8/24 23:42
 * Modified Time: 2019/8/24 23:42
 * Version: 2.0
 */

namespace App\Modules\MemberCard\Validators;


class MemberCardControllerValidator
{
	public static function validator()
	{
		return [
			'applyMemberCard'              => [
				'type_id' => [
					'title'   => '卡类id',
					'rule'    => 'required',
					'message' => []
				],
				'code'    => [
					'title'   => '短信验证码',
					'rule'    => 'required',
					'message' => []
				],
				'user_id' => [
					'title'   => '理发师id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'getMemberCardListPage'        => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				],
				'status'   => [
					'title'   => '状态id',
					'rule'    => 'required',
					'message' => []
				],
			],
			'examineMemberCard'            => [
				'bill_id'        => [
					'title'   => '账单id',
					'rule'    => 'required',
					'message' => []
				],
				'operation'      => [
					'title'   => '操作值',
					'rule'    => 'required',
					'message' => []
				],
				'real_amount'    => [
					'title'   => '实际支付金额',
					'rule'    => 'required',
					'message' => []
				],
				'payment'        => [
					'title'   => '实际支付方式',
					'rule'    => 'required',
					'message' => []
				],
			],
			'rechargeMemberCard'           => [
				'bill_id'        => [
					'title'   => '账单id',
					'rule'    => 'required',
					'message' => []
				],
				'real_amount'    => [
					'title'   => '支付金额',
					'rule'    => 'required',
					'message' => []
				],
				'payment'        => [
					'title'   => '实际支付方式',
					'rule'    => 'required',
					'message' => []
				],
			],
			'createMemberCard'             => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				],
				'type_id'  => [
					'title'   => '卡类id',
					'rule'    => 'required',
					'message' => []
				],
				//                'code'=>[
				//                    'title' => '验证码',
				//                    'rule' => 'required',
				//                    'message' => []
				//                ]
			],
			'getStoreMemberCradNum'        => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				],
				'status'   => [
					'title'   => '状态值',
					'rule'    => 'required',
					'message' => []
				]
			],
			'transferMemberCard'           => [
				'store_id'     => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				],
				'card_type_id' => [
					'title'   => '卡类id',
					'rule'    => 'required',
					'message' => []
				],
				'amount'       => [
					'title'   => '余额',
					'rule'    => 'required',
					'message' => []
				],
			],
			'getTransferMemberCardList'    => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'delTransferMemberCard'        => [
				'member_card_id' => [
					'title'   => '会员卡id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'editTransferMemberCard'       => [
				'member_card_id' => [
					'title'   => '会员卡id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'getMemberCardFlow'            => [
				'member_card_id' => [
					'title'   => '会员卡id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'backupsMemberCard'            => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'getBackupsMemberCard'         => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'getMemberCardInfo'            => [
				'member_card_id' => [
					'title'   => '会员卡id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'getMemberCardServiceList'     => [
				'card_type_id' => [
					'title'   => '会员卡id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'getMyReceiveMemberCardList'   => [
				'phone' => [
					'title'   => '手机号',
					'rule'    => 'required|numeric|between:10000000000,19999999999',
					'message' => [
						'phone.numeric' => '手机号码格式错误',
						'phone.between' => '手机号码格式错误',
					]
				],
				'code'  => [
					'title'   => '验证码',
					'rule'    => 'required',
					'message' => []
				],
			],
			'receiveMemberCard'            => [
				'member_card_id' => [
					'title'   => '会员卡id',
					'rule'    => 'required',
					'message' => []
				]
			],
			'getMemberCardListPageService' => [
				'store_id'   => [
					'title'   => '店铺id',
					'rule'    => 'required',
					'message' => []
				],
				'service_id' => [
					'title'   => '服务id',
					'rule'    => 'required',
					'message' => []
				],
			],
		];
	}
}